<?php

namespace App\Models\Goods;

use App\Models\BasicModel;

class GroupBuyingActivityModel extends BasicModel
{
    protected $table = 'group_buying_activity';

    protected $primaryKey = 'group_buying_activity_id';

    protected $fillable = [
        "group_buying_activity_id",
        "com_id",
        "goods_id",
        "start_time",
        "end_time",
        "group_status",
        "max_people",
        "join_customer_ids",
        "owner_id",
        "created_at",
        "updated_at"
    ];

    protected $casts = [
        "group_buying_activity_id" => 'integer',
        "com_id"  => 'integer',
        "goods_id"  => 'integer',
        "start_time"  => 'string',
        "end_time" => 'string',
        "group_status" => 'integer',
        "max_people" => 'integer',
        "join_customer_ids" => 'string',
        "owner_id" => 'integer',
        "created_at" => 'string',
        "updated_at" => 'string'
    ];

    protected $hidden = [
        "created_at",
        "updated_at"
    ];


}
